package com.softwareinlife.android.ux;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;


public class NoVision extends Activity implements OnTouchListener
{
	public Float x1;
	public Float y1;
	
	
	@Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.novision);
        //findview();
    }
	
	@Override
	public boolean onTouchEvent(MotionEvent event) 
	{
	    	
		x1 = event.getX();//����� �� x�� ���Ͷ�~
		
		y1 = event.getY();//����� �� y�� ���Ͷ�~��������
		
			 try{
				 System.out.println("x ="+ x1.toString());
				 System.out.println("y ="+ y1.toString());
				 
			 }catch(Exception e){}
			 
			switch (event.getAction())
	        {
				case MotionEvent.ACTION_DOWN:
					
					
					if( x1 >= 90 && x1<= 227 && y1 >= 245 && y1 <= 290)
					{
						
						Intent intent3 = new Intent(this,WriteVision.class);
						startActivity(intent3);
					}
				break;
	        }
			return true;
	}
	
	@Override//��ġ �̺�Ʈ �ۼ��ϸ� �ڵ����� ���� ��? �ƴ� ����;;
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;}
	
}